package com.tkmybatis.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.datasource")
public class SlaveDruidDataSourceProperties {

	@Value("${spring.datasource.slave.driver-class-name}")
    private String driverClassName;
	@Value("${spring.datasource.slave.jdbc-url}")
    private String url;
	@Value("${spring.datasource.slave.username}")
    private String username;
	@Value("${spring.datasource.slave.password}")
    private String password;
    @Value("${spring.datasource.slave.log-slow-sql}")
    private String logSlowSql;
    @Value("${spring.datasource.slave.filters}")
    private String filters;
    
	public String getDriverClassName() {
		return driverClassName;
	}
	public void setDriverClassName(String driverClassName) {
		this.driverClassName = driverClassName;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getLogSlowSql() {
		return logSlowSql;
	}
	public void setLogSlowSql(String logSlowSql) {
		this.logSlowSql = logSlowSql;
	}
	public String getFilters() {
		return filters;
	}
	public void setFilters(String filters) {
		this.filters = filters;
	}
    
    
}
